//
//  YZTableViewCell.m
//  kuaiyi
//
//  Created by wyman on 16/5/5.
//
#import "YZCaseTableViewCell.h"
@interface YZCaseTableViewCell()

@property (weak, nonatomic) IBOutlet UIButton *photoImage;

@end
@implementation YZCaseTableViewCell

- (void)awakeFromNib {
    
    self.textView.delegate = self;
    
}
-(void)textViewDidChange:(UITextView *)textView{

    
    self.illdesTypeblock(textView.text);

    
}

- (IBAction)photoDidClicked {
   
    
    self.addDidBlock();
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}
-(void)setTypeName:(NSString *)typeName
{
    _typeName = typeName;
    
    
    self.detailTextLabel.text = typeName;

}

//设置图片
-(void)setSeletedImage:(UIImage *)seletedImage{

    _seletedImage = seletedImage;
    [self.photoImage setBackgroundImage:seletedImage forState:UIControlStateNormal];
    
    

}


-(void)textdetail:(NSInteger)row{
    if (row == 1){
        self.textLabel.text = @"疾病细分";}
}

+(NSString *)cellIDWithNew:(NSInteger)section
{

    NSString  *ID = @"type";
    if (section == 1) {
        ID = @"describe";
    }

    return ID;
}

+(CGFloat)cellWithHeight:(NSInteger)section
{
    CGFloat height = 44;
    if (section == 1) {
        height = 305;
    }
    return height;
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event

{
    [super touchesBegan:touches withEvent:event];
//    [self endEditing:YES];
}
@end
